import request from '@/utils/request';
//获取课堂列表
export function getClassList(params) {
    return request({
        url: '/classroom/course/getClassroomPage',
        method: 'post',
        params
    });
}
//新增课堂
export function addClass(data) {
    return request({
        url: '/classroom/course/addClassroom',
        method: 'post',
        data
    });
}
//编辑课堂
export function editClass(data) {
    return request({
        url: '/classroom/course/editClassroom',
        method: 'put',
        data
    });
}
//删除课堂
export function deleteClass(data) {
    return request({
        url: '/classroom/course/' + data,
        method: 'delete',
    });
}
